{assign var=formId value='list'}
<div id="content">
    <div class="highlight">
        {include file="admin/config_modules/menu.temp.html" title=menu}
        {include file="admin/toolbar.temp.html" title=toolbar}
        {if $infoText}
        <div class="{$infoClass}">
            <h4>Result:</h4>
            <p>{$infoText}</p>
        </div>
        {/if}
        <div class="formType">
        <form action="{$base_url}" method="post" id="{$formId}" name="{$formId}">
            <fieldset>
            <div class="left">
                <div class="titles">{l s='infoneed'}</div>
                <div style="clear:both;">
                    <ul class="tabs">
                        <li class="tab">{l s='imagesize'}</li>
                        {if $typeid eq 2}<li class="tab">{l s='interface'}</li>{/if}
                        {if isset($arrPlugin) && is_array($arrPlugin)}<li class="tab">{l s='plugins'}</li>{/if}
                        {if $objectLanguages}
                            {foreach $objectLanguages as $objectlang} 
                                <li class="tab {if $objectlang@first}selected{/if}">{$objectlang->getField('name')}</li>
                            {/foreach}
                        {/if}
                    </ul>
                    <div class="tabcontent">
                        <div class="clear"></div>
                        <div class="division2">
                            <p>
                                <label for="wavatar">{l s='wavatar'}</label>
                                <span>{l s='wavatar_help'}</span>
                                <input type="text" name="wavatar" value="{$wavatar}" />
                            </p>
                            <p>
                                <label for="wavatar">{l s='wmedium'}</label>
                                <span>{l s='wmedium_help'}</span>
                                <input type="text" name="wmedium" value="{$wmedium}" />
                            </p>
                            <p>
                                <label for="wbig">{l s='wbig'}</label>
                                <span>{l s='wbig_help'}</span>
                                <input type="text" name="wbig" value="{$wbig}" />
                            </p>                    
                         </div>
                         <div class="division2">
                            <p>
                                <label for="name">{l s='havatar'}</label>
                                <span>{l s='havatar_help'}</span>
                                <input type="text" name="havatar" value="{$havatar}" />
                            </p>
                            <p>
                                <label for="name">{l s='hmedium'}</label>
                                <span>{l s='hmedium_help'}</span>
                                <input type="text" name="hmedium" value="{$hmedium}" />
                            </p>
                            <p>
                                <label for="name">{l s='hbig'}</label>
                                <span>{l s='hbig_help'}</span>
                                <input type="text" name="hbig" value="{$hbig}" />
                            </p>                    
                        </div>       
                        <div class="clear"></div>
                    </div> 
                    {if $typeid eq 2}
                    <div class="tabcontent">
                        <div class="clear"></div>
                        <div class="division2">
                            <p>
                                <label for="status">{l s='theme'} *</label>
                                <span> {l s='theme_help'}</span>
                                <select name="theme">{$listTheme}</select>
                            </p>                   
                         </div>
                         <div class="division2">
                            <p>
                                <label for="status">{l s='layout'} *</label>
                                <span>{l s='layout_help'}</span>
                                <select name="layout">{$listLayout}</select>
                            </p> 
                         </div>
                        <div class="clear"></div>
                    </div>
                    {/if}
                    {if isset($arrPlugin) && is_array($arrPlugin)}
                    <div class="tabcontent">
                        <p>
                            <label for="ismenu">{l s='plugin'}</label>
                            <span>{l s='plugin_help'}</span>
                        </p>            
                        {foreach $arrPlugin as $itemPlugin}
                        <div class="division3">
                            <p>
                                <input type="checkbox" style="width:auto"  name="plugin[]" id="{$itemPlugin.namePlugin}" value="{$itemPlugin.namePlugin}" {foreach $plugins as $plugin}{if $itemPlugin.namePlugin eq $plugin}checked="checked"{/if}{/foreach}/>&nbsp;<label title="{$itemPlugin.descriptionPlugin}" for="{$itemPlugin.namePlugin}" style="display:inline-block">{$itemPlugin.namePlugin}</label>
                            </p>
                        </div>
                        {/foreach}
                        <div class="clear"></div>
                    </div> 
                    {/if}
                    {if $objectLanguages}
                        {foreach $objectLanguages as $objectlang} 
                            <div class="tabcontent {if $objectlang@first}selected{/if}">
                                <p>
                                    <label for="name">{l s='name'} *</label>
                                    <span>{l s='name_help'}</span>
                                    <input type="text" name="{$objectlang->getField('code')}_name" value="{$objectInfo->getFieldLangAdmin($objectlang->getField('code'), 'name')}" />
                                </p>
                                <p>
                                    <label for="details">{l s='details'} *</label>
                                    <span>{l s="details_help"}</span>
                                    <textarea name="{$objectlang->getField('code')}_details" class="mceAdvanced" style="width:97%">{$objectInfo->getFieldLangAdmin($objectlang->getField('code'),'details')}</textarea>
                                </p>
                                <br class="clear">
                            </div>
                        {/foreach}
                    {/if}
                </div>
            </div>
            <div class="right">
                <div class="titles">{l s='infononeed'}</div>
                <div id="accordion">
                    <div class="title">{l s='properties'}</div>
                    <div class="content first">
                        <p>
                            <label for="code">{l s='namemodules'} *</label>
                            <span>{l s='help_namemodules'}</span>
                            <input type="text" name="code" value="{$code}" />
                        </p>
                        <p>
                            <label for="code">{l s='slug'} *</label>
                            <span>{l s='help_slug'}</span>
                            <input type="text" name="slug" value="{$slug}" />
                        </p>
                        <p>
                            <label for="status">{l s='status'} *</label>
                            <span>{l s='status_help'}</span>
                            <select name="status">
                            	{$listStatus}
                            </select>
                        </p>
                        <p>
                            <label for="level">{l s='level'} *</label>
                            <span>{l s='level_help'}</span>
                            <select name="cid">
                                <option value="0">/</option>
                                {$listCategory}
                            </select>
                        </p>
                        <p>
                            <label for="name">{l s='position'}</label>
                            <span>{l s='help_position'}</span>
                            <input type="text" id="position" name="position" value="{$position}" />
                        </p>
                        {if $typeid eq 1}
                        <p>
                            <label for="ismenu">{l s='ismenu'}</label>
                            <span>{l s='help_ismenu'}</span>
                            <input type="radio" style="width:auto"  name="ismenu" value="1" {if $ismenu eq 1}checked="checked"{/if}/>&nbsp;{l s='primenu'}&nbsp;&nbsp;
                            <input type="radio" style="width:auto"  name="ismenu" value="2" {if $ismenu eq 2}checked="checked"{/if}/>&nbsp;{l s='confimenu'}&nbsp;&nbsp 
                            <input type="radio" style="width:auto" name="ismenu" value="0" {if $ismenu eq 0}checked="checked"{/if}/>&nbsp;{l s='nomenu'}  
                        </p>
                        {/if}
                    </div>
                </div>
            </div>
            <div class="over">
                <p class="btnType">
                <input type="hidden" id="op"  name="op" value="{$op}" />
                <input type="hidden" id="act" name="act" value="{$act}" />
                <input type="hidden" id="oId" name="oId" value="{$oId}" />
            	<input type="hidden" id="typeid" name="typeid" value="{$typeid}" />
                <input type="hidden" id="pid" name="pid" value="{$pid}" />
                <input type="hidden" id="plus" name="plus" value="saveItem" />
                </p>
            </div>
            </fieldset>
        </form>
        </div>
    </div>
</div>